package kr.re.etri.snsenabler.client.auth;

import kr.re.etri.snsenabler.client.service.OAuthServiceAsync;
import kr.re.etri.snsenabler.client.service.TwitterService;
import kr.re.etri.snsenabler.client.service.TwitterServiceAsync;
import kr.re.etri.snsenabler.shared.Data;
import kr.re.etri.snsenabler.shared.SocialServiceProvider;

import com.google.gwt.core.client.GWT;

class TwitterAuthorizationDialog extends OAuthAuthorizationDialog {

	private static final TwitterServiceAsync SERVICE = GWT.create(TwitterService.class);

	protected TwitterAuthorizationDialog(Data loginData, SocialServiceProvider socialServiceProvider) {
		super(loginData, socialServiceProvider);
	}

	@Override
	protected OAuthServiceAsync getService() {
		return SERVICE;
	}
	//
//	@UiHandler("getUserTimelineButton")
//	public void onGetUserTimelineButtonClicked(SelectEvent event) {
//		gert.getUserTimeline(user.getString(SocialServiceProperties.USER_ID), new AsyncCallback<Void>() {
//			public void onSuccess(Void result) {
//			}
//
//			public void onFailure(Throwable caught) {
//				GWT.log("getUserTimeline: " + caught.getMessage());
//			}
//		});
//	}
}
